% TEST_ID: LANG-EXPAND-0040
% CATEGORY: language/array-ops/ops
% 测试 >, <, >=, <= 运算符

function test_compare
    % Test greater than and less than operators
    A = [1, 2, 3, 4, 5, 6];
    B = [4, 5, 6, 7, 8, 9];
    assert(all(A < B)); % Test less than
    assert(all(B > A)); % Test greater than
    assert(~any(A > B)); % Test not greater than
    assert(~any(B < A)); % Test not less than
    assert(all(A <= B)); % Test less than or equal to
    assert(all(B >= A)); % Test greater than or equal to
    assert(~any(A >= B)); % Test not greater than or equal to
    assert(~any(B <= A)); % Test not less than or equal to
end

